﻿using System;
using System.Collections.Generic;
using IterationLife.ContentResources.Models;
using Util.Domains.Repositories;

namespace IterationLife.ContentResources.Repositories {
    /// <summary>
    /// 内容资源分类仓储
    /// </summary>
    public interface IContentResourceCategoryRepository : IRepository<ContentResourceCategory> {
        /// <summary>
        /// 根据编码获取启用集合编号
        /// </summary>
        /// <param name="code">编码</param>
        List<Guid?> GetEnabledIdsByCodes(string code);
        /// <summary>
        /// 根据编号获取启用集合编号
        /// </summary>
        /// <param name="codes">编码集合</param>
        List<Guid?> GetEnabledIdsById(Guid? id);
    }
}
